package com.yelink.metrics.core.constant.enums;

import lombok.Getter;

/**
 * 时间维度
 * @author idea
 */
public enum FrequencyUnit {
    /**
     * 时
     */
    HOUR("时", "h"),

    /**
     * 分
     */
    MINUTE("分", "m"),


    /**
     * 秒
     */
    SECOND("秒", "s"),


    ;
    @Getter
    public final String name;
    @Getter
    public final String unit;

    FrequencyUnit(String name, String unit) {
        this.name = name;
        this.unit = unit;
    }
}
